﻿@model IEnumerable<vngoodlife.Article>
<li>
    <h2>Cười</h2>
    @if (Model.Count() == 5)
    {
     <div style="margin-bottom: 25px;">
     <div style="float:left;">
            <a href="@Url.RouteUrl("ArticleDetailFrontend", new { articleSeoUrl = Model.ElementAt(0).ArticleSeoUrl })">
                <img src="../../../Content/images/article/thumbnail/@Model.ElementAt(0).Photo" alt="@Model.ElementAt(0).Photo" 
                class="Image100x65" />
            </a>
     </div>          
     <div >
            <a href="@Url.RouteUrl("ArticleDetailFrontend", new { articleSeoUrl = Model.ElementAt(0).ArticleSeoUrl })">    
                <h1 class="h1Spec">
                @vngoodlife.Util.GeneralClass.CutStringByWords(Model.ElementAt(0).Title, 10) 
                </h1>
                <p class="pSpec" >
                @vngoodlife.Util.GeneralClass.CutStringByWords(Model.ElementAt(0).Description, 20)
                </p>
            </a>
    </div>
    </div>

    <div style="margin-top:5px; margin-bottom: 25px;">
    <div style="float:left;">
            <a href="@Url.RouteUrl("ArticleDetailFrontend", new { articleSeoUrl = Model.ElementAt(1).ArticleSeoUrl })">
                <img src="../../../Content/images/article/thumbnail/@Model.ElementAt(1).Photo" alt="@Model.ElementAt(1).Photo" 
                class="Image100x65" />
            </a>
     </div>          
     <div style="margin-top: 10px;">
            <a href="@Url.RouteUrl("ArticleDetailFrontend", new { articleSeoUrl = Model.ElementAt(1).ArticleSeoUrl })">    
                <h1 style="color:#404040; font-size:1em; font-weight: 600; line-height: 16px;">
                @vngoodlife.Util.GeneralClass.CutStringByWords(Model.ElementAt(1).Title, 10) 
                </h1>
                <p class="pSpec" >
                @vngoodlife.Util.GeneralClass.CutStringByWords(Model.ElementAt(1).Description, 20)
                </p>
            </a>
    </div>
    </div>
    <ul style="margin-top: 10px;">
    @foreach (var item in Model.Skip(2))
    {
        <li>
            <a href="@Url.RouteUrl("ArticleDetailFrontend", new { articleSeoUrl = item.ArticleSeoUrl })">
                @item.Title
            </a>
        
        </li>
    }
        
    </ul>
    }
    else
    {
        <ul>
        @foreach (var item in Model)
        {
         <li> 
           <a href="@Url.RouteUrl("ArticleDetailFrontend", new { articleSeoUrl = item.ArticleSeoUrl })">
                @item.Title
            </a>
         </li>
        }
        </ul>
    }

    </li>
<a href="/@Html.Action("GetMenuSeoUrl", "MenuList", new { menuListID = "138" })" 
   style="float:right;">Xem thêm</a>
